package school;

public class HQ2 {
	private String name;

	public HQ2(String name) {
		// super();
		this.name = name;
	}

	/**
	 * 使用对象时，用Teacher指代变量类型
	 * 
	 * @param t
	 */
	public void judge(Teacher t) {
		System.out.println(name + "开始试听评估" + t.getName() + "老师");
		t.selfIntro();
		t.giveLession();
		System.out.println(name + "觉得" + t.getName() + "还阔仪");
	}

	// 添加评估机房的方法
	public void judge(Lab l) {
		System.out.println(name + "觉得" + l + "还可以，很满意");
	}

	public static void main(String[] args) {
		HQ2 h = new HQ2("孙爱国");
		JavaTeacher j = new JavaTeacher("老谢", "合肥科海中心");
		DocNetTeacher j2 = new DocNetTeacher("小郭", "合肥科海中心");
		DBTeacher j3 = new DBTeacher("小王", "合肥科海中心");

		h.judge(j);
		h.judge(j2);
		h.judge(j3);

		Lab l = new Lab("305", 1, "千兆带宽");
		h.judge(l);
	}

}
